<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>解决方案详情</title>
		<link rel="stylesheet" href="iconfont/iconfont.css">
		<link rel="stylesheet" type="text/css" href="css/solutionDetail.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
	</head>
	<body>
		<header>
			<div class="head">
				<div class="content">
					<img src="img/logo.png">
					<ul>
						<li><a href="index.html">网站首页</a></li>
						<li><a href="">传悦资源</a></li>
						<li><a href="projectList.html">传悦案例</a></li>
						<li><a href="">传悦服务</a></li>
						<li><a href="solutionList.html">解决方案</a></li>
						<li><a href="">需求提交</a></li>
					</ul>
					<div class="content-iconfont">
						<span class="iconfont icon-dianhua"></span>
						<span class="num">0535-60652189</span>
						<span class="iconfont icon-qq"></span>
						<span class="iconfont icon-wb"></span>
						<span class="iconfont icon-weixin"></span>
						<span class="iconfont icon-youxiang"></span>
					</div>
				</div>
			</div>
		</header>
		<main>
			<div id="template">
				<h3></h3>
			<span class="tab">标签：</span><span></span>
			<span class="right"></span> 
			<hr >
			<img src="img/solu.png" >
			<div class="con">
				<p></p>
			</div>
			</div>
			
			<hr >
			<ul class="nav">
				<li><a href=""><span>上一个</span>：开门红商城基础营销</a></li>
				<li><a href=""><span>下一个</span>：金数据全网整合营销</a></li>
			</ul>
		</main>
		<footer>
			<div class="content">
				<img src="img2/logo_03.png">
				<div class="txt">
					<ul>
						<li>关于传悦</li>
						<li>新闻动态</li>
						<li>传悦观点</li>
						<li>联系传悦</li>
						<li>加入传悦</li>
						<li>付款账户</li>
					</ul>
					<br>
					<p>Copyright &copy2013 &nbsp创新网络科技有限责任公司&nbsp ||&nbsp 传悦 Chnyoo.cn All Rights Reserved &nbsp 京ICP备12005221号</p>
				</div>
			</div>
		</footer>
		<script type="text/javascript">
			let id=(location.href).split("=")[1];
			let http=new XMLHttpRequest();
			http.open("get",`http://10.35.164.6:8080/solutionD?id=${id}`)
			http.send();
			http.onreadystatechange=function(){
				if(http.readyState===4){
					let solutionD=JSON.parse(http.responseText);
					console.log(solutionD);
					document.querySelector("h3").innerHTML=solutionD.title;
					document.querySelectorAll("main span")[1].innerHTML=solutionD.into;
					document.querySelector("main .right").innerHTML=`${solutionD.date}-${solutionD.date2}`;
					let content=solutionD.content.replace(/\s/g,"<br><br>")
					document.querySelector("main .con p").innerHTML=content;
				}
			}
		</script>
	</body>
</html>